﻿using _8Group.MES.MeasuringUnit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8Group.MES.WorkStation
{
    public interface IWorkStationService
    {
        /// <summary>
        /// 获取车间列表
        /// </summary>
        /// <returns></returns>
        Task<List<MdWorkshop>> GetWorkShopList();

        /// <summary>
        /// 获取生产工序
        /// </summary>
        /// <returns></returns>
        Task<string> GetProcessList();

        /// <summary>
        /// 获取工作站列表
        /// </summary>
        /// <param name="workstationCode"></param>
        /// <param name="workstationName"></param>
        /// <param name="workshopID"></param>
        /// <param name="processID"></param>
        /// <returns></returns>
        Task<ResultResturn<List<WorkStationListDTO>>> GetWorkStationList(string? workstationCode, string? workstationName, int? workshopID, int? processID, int pageIndex, int pageSize);
        /// <summary>
        /// 添加工作站
        /// </summary>
        /// <param name="workStationAddDTO"></param>
        /// <returns></returns>
        Task<WorkStationAddDTO> AddWorkStation(WorkStationAddDTO workStationAddDTO);
        /// <summary>
        /// 修改工作站
        /// </summary>
        /// <param name="workStationUpdateDTO"></param>
        /// <returns></returns>
        Task<WorkStationUpdateDTO> UpdateWorkStation(WorkStationUpdateDTO workStationUpdateDTO);
        
        /// <summary>
        /// 删除工作站
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       Task<int> DeleteWorkStation(int id);
    }
}
